import request from '../utils/request'

export function getMenuTree() {
        return request({
            url:'/api/Menu/GetTreeMenu',
            method:'get'
        })
}

export function getRoleMenu(para){
    return request({
        url:'/api/Menu/GetMenuByRoleId',
        method:'get',
        params:para
    })
}

export function updateRoleMenu(para){
    return request({
        url:'/api/Role/SetRoleMenu',
        method:'post',
        params:para
    })
}